package com.ruoyi.teacher.mapper;

import java.util.Date;
import java.util.List;

import com.ruoyi.teacher.domain.Teacher;
import com.ruoyi.teacher.domain.TeacherRelationDto;
import com.ruoyi.teacher.domain.TeacherWorkSchedule;
import org.apache.ibatis.annotations.Param;

/**
 * 老师排班Mapper接口
 * 
 * @author clid
 * @date 2024-03-25
 */
public interface TeacherWorkScheduleMapper 
{
    /**
     * 查询老师排班
     * 
     * @param id 老师排班主键
     * @return 老师排班
     */
    public TeacherWorkSchedule selectTeacherWorkScheduleById(Long id);

    /**
     * 查询老师排班列表
     * 
     * @param teacherWorkSchedule 老师排班
     * @return 老师排班集合
     */
    public List<TeacherWorkSchedule> selectTeacherWorkScheduleList(TeacherWorkSchedule teacherWorkSchedule);

    /**
     * 新增老师排班
     * 
     * @param teacherWorkSchedule 老师排班
     * @return 结果
     */
    public int insertTeacherWorkSchedule(TeacherWorkSchedule teacherWorkSchedule);

    /**
     * 修改老师排班
     * 
     * @param teacherWorkSchedule 老师排班
     * @return 结果
     */
    public int updateTeacherWorkSchedule(TeacherWorkSchedule teacherWorkSchedule);

    /**
     * 删除老师排班
     * 
     * @param id 老师排班主键
     * @return 结果
     */
    public int deleteTeacherWorkScheduleById(Long id);

    /**
     * 批量删除老师排班
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTeacherWorkScheduleByIds(@Param("ids") List<Long> ids);

    List<Teacher> getTeacherByUserIds(@Param("userIds") List<String> userIds);

    void batchInsertTeacherRelation(@Param("teacherRelationDtos") List<TeacherRelationDto> teacherRelationDtos);

    TeacherWorkSchedule selectTeacherWorkScheduleByDate(TeacherWorkSchedule teacherWorkSchedule);

    void deleteTeacherWorkScheduleByWorkId(Long id);

    TeacherWorkSchedule queryListDifferent(TeacherWorkSchedule changeTeacher);

    void deleteTeacherWorkScheduleByOpUserId(@Param("opUserId") String opUserId,@Param("oldId") Long oldId);

    void deleteTeacherWorkSchedule(@Param("teacherWorkSchedule") TeacherWorkSchedule teacherWorkSchedule, @Param("ids") List<String> ids);

    void batchInsertTeacherWorkSchedule(@Param("teacherWorkSchedules") List<TeacherWorkSchedule> list);

    List<Teacher> getTeacherByOpUserIds(@Param("userIds") List<String> userIds);

    List<TeacherWorkSchedule> selectTodayTeacherWorkScheduleList(TeacherWorkSchedule teacherWorkSchedule);

    List<TeacherWorkSchedule> findByOpUserId(TeacherWorkSchedule teacherWorkSchedule);
}
